package com.yehui.bean;

import org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.stereotype.Service;

@Service
public class MyMergedBeanDefinitionPostProcessor implements MergedBeanDefinitionPostProcessor {

    public MyMergedBeanDefinitionPostProcessor(){
        System.out.println("MyMergedBeanDefinitionPostProcessor==========");
    }

    @Override
    public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) {
        System.out.println("MyMergedBeanDefinitionPostProcessor=============");
       // beanDefinition.setInitMethodName("init");//自定义注解
    }
}
